Brief Introduction to the zip () and * zip () functions in Python and the python Functions
Preface
1. experiment environment: Python 3.6;
2. Sample Code address: Download example;
3. The element in this article refers to the next-level project
definition:zip ([iterable, ...])Zip () is an intrinsic function of Python that takes a series of iterated objects as parameters, packages the corresponding elements in the object into tuple (tuples), and then returns a list of these tuples. If the
Transferred from: http://www.cnblogs.com/BeginMan/archive/2013/03/14/2959447.htmlThis blog post is pretty good.First, code guidanceFirst look at this section of code:1 >>> name= (' Jack ', ' Beginman ', ' Sony ', ' Pcky ') 2 >>> age= (2001,2003,2005,
Command Line2 zip and unzip, line2unzipCommand Line-ZIP 1. know zip
You can use man zip to obtain the man page of the zip command. The zip command can be used to compress the package file. The compressed file ends with. zip.
man zip
2. Zip
First, code guidance First look at this section of code: >>> name= (' Jack ', ' Beginman ', ' Sony ', ' Pcky ') >>> age= (2001,2003,2005,2000) >>> for a,n in zip (name,age): Print a,n 5 6 output: 7 Jack 2001 8 Beginman 2003 9 Sony 200510 Pcky 2000
Zip function: It is the built-in function of Python (the built-in functions associated with the sequence are: sorted (), reversed (), enumerate (), zip ()), where sorted () and zip () return a sequence (list) object, reversed ( ), enumerate ()
First, code guidance
First look at this section of code:
>>> name= (' Jack ', ' Beginman ', ' Sony ', ' Pcky ') >>> age= (2001,2003,2005,2000) >>> for a,n in zip (name,age): print A,n
Output:
Jack 2001
Beginman 2003
Sony 2005
Pcky 2000
Let's
Php generates two examples of zip compression files. To generate a zip file in php, we only need to use one phpzip to compress the ZipArchive function. the following small series will summarize the two implementations. one is to use ZipArchive to
using zip commands to compress and decompress files in LinuxTransferred from http://www.itivy.com/linux/archive/2012/3/22/linux-zip.html
In Windows, we use the most of the decompression software is winrar, this software is very convenient for us
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.